程式語言教學誌: Java 快速導覽- String 類別的endsWith() String 類別(class) 有endsWith() 方法(method) ,判斷字串(string) 是否以suffix 結尾 ... http://download.oracle.com/javase/7/docs/api/java/lang/String.html.